package com.gao.api.gate.quick.core.service;

import com.gao.api.gate.quick.core.async.Listener;

import java.util.concurrent.CompletableFuture;

/**
 * <p></p>
 *
 * @author gaoshuangwen
 * @since 2022/01/12 16:09
 */
public interface Service{

    void start(Listener<Boolean> listener) throws ServiceException;

    void stop(Listener<Boolean> listener) throws ServiceException;

    void init() throws ServiceException;

    boolean isRunning();

}
